package test.word;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

public class CreateFile {

	public static void main(String[] args) {

		File f = new File("C:/【范例】毕业设计说明书指导教师&评阅人评语.doc");

		String s = "1414011132_李金," + "1414011326_刘敬哲," + "1414011408_王佩佩," + "1414011412_王璐瑶," + "1414011414_赵海玲,"
				+ "1414011443_吉晨豪," + "1414011521_聂震宇," + "1414011527_元帝," + "1414011532_郝鹏勇," + "1414011539_王涛,"
				+ "1414011609_周梦丽," + "1414011634_李腾," + "1414011643_王壮壮," + "1414011702_杜雅楠," + "1414011710_许倩飞,"
				+ "1414011849_张伟";

		String[] ss = s.split(",");

		for (String name : ss) {
			try {
				FileUtils.copyFile(f, new File("C:/【范例】毕业设计说明书指导教师&评阅人评语.doc".replace("C:/【范例】", "C:/TTT/" + name + "_")));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
